"""
Create a function that returns the sum of the two lowest positive numbers given an array of minimum 4 integers. No floats or empty arrays will be passed.
For example, when an array is passed like [19, 5, 42, 2, 77], the output should be 7.
"""


def sum_two_smallest_numbers(numbers):
    result_dict = {}
    for i in range(len(numbers)):
        result_dict[i] = numbers[i]
    tuple_list = sorted(result_dict.items(), key=lambda x:x[1])
    return tuple_list[0][1] + tuple_list[1][1]


def sum_two_smallest_numbers1(numbers):
    return sum(sorted(numbers)[:2])
